rule
routing/rule
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| I | inactive | inactive |
| * | default | default |
| Argument | Type | Description |
|---|---|---|
| src-address ( unset ) | address (flags=64iv/) | Source address to match. |
| dst-address ( unset ) | address (flags=64iv/) | Destination address to match. |
| routing-mark ( unset ) | enum | Match a specific routing mark. |
| interface ( unset ) | interface_enum | Incoming interface to match. |
| action | enum (lookup | lookup-only-in-table | unreachable | drop | mangle) | Action to take on the matching packet:
|
| table | enum (local) | Name of the routing table to use for lookup. |
| min-prefix ( unset ) | num | Hide routes from the routing table with the specified prefix length from packets processed by this routing rule. This is equivalent to the Linux IP rule suppress_prefixlength. For example, set the value to 0 to suppress the default route in the routing decision. |
| vrf | switch | |
| realm ( unset ) | num { } | |
| chain ( unset ) | enum | Name of the chain used by routing decision rules. By default, user is used when the chain is not specified. If the chain name matches a built-in routing decision name, user-created rules are added after that decision. For example, if chain=mangle, user-created rules in this chain are located immediately after the mangle decision. |